import 'package:flutter/material.dart';
import 'package:flutter_demo/core/common/event/index.dart';
import 'package:flutter_demo/ui/pages/status/data/share_data.dart';

class PublicWidget extends StatelessWidget {
  const PublicWidget({super.key});

  @override
  Widget build(BuildContext context) {
    return ElevatedButton(
        child: const Text("push "),
        onPressed: () {
          final ShareData userInfo = ShareData(nickname: "TC", level: 18);
          eventBus.fire(userInfo);
        });
  }
}
